package com.lebang.example;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbMemberInviteStatisticsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public TbMemberInviteStatisticsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andEnableIsNull() {
            addCriterion("`enable` is null");
            return (Criteria) this;
        }

        public Criteria andEnableIsNotNull() {
            addCriterion("`enable` is not null");
            return (Criteria) this;
        }

        public Criteria andEnableEqualTo(Integer value) {
            addCriterion("`enable` =", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotEqualTo(Integer value) {
            addCriterion("`enable` <>", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThan(Integer value) {
            addCriterion("`enable` >", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableGreaterThanOrEqualTo(Integer value) {
            addCriterion("`enable` >=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThan(Integer value) {
            addCriterion("`enable` <", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableLessThanOrEqualTo(Integer value) {
            addCriterion("`enable` <=", value, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableIn(List<Integer> values) {
            addCriterion("`enable` in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotIn(List<Integer> values) {
            addCriterion("`enable` not in", values, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableBetween(Integer value1, Integer value2) {
            addCriterion("`enable` between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andEnableNotBetween(Integer value1, Integer value2) {
            addCriterion("`enable` not between", value1, value2, "enable");
            return (Criteria) this;
        }

        public Criteria andHasDeletedIsNull() {
            addCriterion("has_deleted is null");
            return (Criteria) this;
        }

        public Criteria andHasDeletedIsNotNull() {
            addCriterion("has_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andHasDeletedEqualTo(String value) {
            addCriterion("has_deleted =", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedNotEqualTo(String value) {
            addCriterion("has_deleted <>", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedGreaterThan(String value) {
            addCriterion("has_deleted >", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedGreaterThanOrEqualTo(String value) {
            addCriterion("has_deleted >=", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedLessThan(String value) {
            addCriterion("has_deleted <", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedLessThanOrEqualTo(String value) {
            addCriterion("has_deleted <=", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedLike(String value) {
            addCriterion("has_deleted like", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedNotLike(String value) {
            addCriterion("has_deleted not like", value, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedIn(List<String> values) {
            addCriterion("has_deleted in", values, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedNotIn(List<String> values) {
            addCriterion("has_deleted not in", values, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedBetween(String value1, String value2) {
            addCriterion("has_deleted between", value1, value2, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andHasDeletedNotBetween(String value1, String value2) {
            addCriterion("has_deleted not between", value1, value2, "hasDeleted");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(String value) {
            addCriterion("member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(String value) {
            addCriterion("member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(String value) {
            addCriterion("member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(String value) {
            addCriterion("member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(String value) {
            addCriterion("member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(String value) {
            addCriterion("member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLike(String value) {
            addCriterion("member_id like", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotLike(String value) {
            addCriterion("member_id not like", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<String> values) {
            addCriterion("member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<String> values) {
            addCriterion("member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(String value1, String value2) {
            addCriterion("member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(String value1, String value2) {
            addCriterion("member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andNumbersIsNull() {
            addCriterion("numbers is null");
            return (Criteria) this;
        }

        public Criteria andNumbersIsNotNull() {
            addCriterion("numbers is not null");
            return (Criteria) this;
        }

        public Criteria andNumbersEqualTo(Integer value) {
            addCriterion("numbers =", value, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersNotEqualTo(Integer value) {
            addCriterion("numbers <>", value, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersGreaterThan(Integer value) {
            addCriterion("numbers >", value, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersGreaterThanOrEqualTo(Integer value) {
            addCriterion("numbers >=", value, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersLessThan(Integer value) {
            addCriterion("numbers <", value, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersLessThanOrEqualTo(Integer value) {
            addCriterion("numbers <=", value, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersIn(List<Integer> values) {
            addCriterion("numbers in", values, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersNotIn(List<Integer> values) {
            addCriterion("numbers not in", values, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersBetween(Integer value1, Integer value2) {
            addCriterion("numbers between", value1, value2, "numbers");
            return (Criteria) this;
        }

        public Criteria andNumbersNotBetween(Integer value1, Integer value2) {
            addCriterion("numbers not between", value1, value2, "numbers");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyIsNull() {
            addCriterion("total_money is null");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyIsNotNull() {
            addCriterion("total_money is not null");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyEqualTo(Integer value) {
            addCriterion("total_money =", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyNotEqualTo(Integer value) {
            addCriterion("total_money <>", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyGreaterThan(Integer value) {
            addCriterion("total_money >", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_money >=", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyLessThan(Integer value) {
            addCriterion("total_money <", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("total_money <=", value, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyIn(List<Integer> values) {
            addCriterion("total_money in", values, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyNotIn(List<Integer> values) {
            addCriterion("total_money not in", values, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyBetween(Integer value1, Integer value2) {
            addCriterion("total_money between", value1, value2, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andTotalMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("total_money not between", value1, value2, "totalMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyIsNull() {
            addCriterion("expect_money is null");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyIsNotNull() {
            addCriterion("expect_money is not null");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyEqualTo(Integer value) {
            addCriterion("expect_money =", value, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyNotEqualTo(Integer value) {
            addCriterion("expect_money <>", value, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyGreaterThan(Integer value) {
            addCriterion("expect_money >", value, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("expect_money >=", value, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyLessThan(Integer value) {
            addCriterion("expect_money <", value, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("expect_money <=", value, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyIn(List<Integer> values) {
            addCriterion("expect_money in", values, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyNotIn(List<Integer> values) {
            addCriterion("expect_money not in", values, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyBetween(Integer value1, Integer value2) {
            addCriterion("expect_money between", value1, value2, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andExpectMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("expect_money not between", value1, value2, "expectMoney");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidIsNull() {
            addCriterion("last_month_valid is null");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidIsNotNull() {
            addCriterion("last_month_valid is not null");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidEqualTo(Integer value) {
            addCriterion("last_month_valid =", value, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidNotEqualTo(Integer value) {
            addCriterion("last_month_valid <>", value, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidGreaterThan(Integer value) {
            addCriterion("last_month_valid >", value, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidGreaterThanOrEqualTo(Integer value) {
            addCriterion("last_month_valid >=", value, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidLessThan(Integer value) {
            addCriterion("last_month_valid <", value, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidLessThanOrEqualTo(Integer value) {
            addCriterion("last_month_valid <=", value, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidIn(List<Integer> values) {
            addCriterion("last_month_valid in", values, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidNotIn(List<Integer> values) {
            addCriterion("last_month_valid not in", values, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidBetween(Integer value1, Integer value2) {
            addCriterion("last_month_valid between", value1, value2, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andLastMonthValidNotBetween(Integer value1, Integer value2) {
            addCriterion("last_month_valid not between", value1, value2, "lastMonthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidIsNull() {
            addCriterion("month_valid is null");
            return (Criteria) this;
        }

        public Criteria andMonthValidIsNotNull() {
            addCriterion("month_valid is not null");
            return (Criteria) this;
        }

        public Criteria andMonthValidEqualTo(Integer value) {
            addCriterion("month_valid =", value, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidNotEqualTo(Integer value) {
            addCriterion("month_valid <>", value, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidGreaterThan(Integer value) {
            addCriterion("month_valid >", value, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidGreaterThanOrEqualTo(Integer value) {
            addCriterion("month_valid >=", value, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidLessThan(Integer value) {
            addCriterion("month_valid <", value, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidLessThanOrEqualTo(Integer value) {
            addCriterion("month_valid <=", value, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidIn(List<Integer> values) {
            addCriterion("month_valid in", values, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidNotIn(List<Integer> values) {
            addCriterion("month_valid not in", values, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidBetween(Integer value1, Integer value2) {
            addCriterion("month_valid between", value1, value2, "monthValid");
            return (Criteria) this;
        }

        public Criteria andMonthValidNotBetween(Integer value1, Integer value2) {
            addCriterion("month_valid not between", value1, value2, "monthValid");
            return (Criteria) this;
        }

        public Criteria andGradeIsNull() {
            addCriterion("grade is null");
            return (Criteria) this;
        }

        public Criteria andGradeIsNotNull() {
            addCriterion("grade is not null");
            return (Criteria) this;
        }

        public Criteria andGradeEqualTo(String value) {
            addCriterion("grade =", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotEqualTo(String value) {
            addCriterion("grade <>", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThan(String value) {
            addCriterion("grade >", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThanOrEqualTo(String value) {
            addCriterion("grade >=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThan(String value) {
            addCriterion("grade <", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThanOrEqualTo(String value) {
            addCriterion("grade <=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLike(String value) {
            addCriterion("grade like", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotLike(String value) {
            addCriterion("grade not like", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeIn(List<String> values) {
            addCriterion("grade in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotIn(List<String> values) {
            addCriterion("grade not in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeBetween(String value1, String value2) {
            addCriterion("grade between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotBetween(String value1, String value2) {
            addCriterion("grade not between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andRebateProportionIsNull() {
            addCriterion("rebate_proportion is null");
            return (Criteria) this;
        }

        public Criteria andRebateProportionIsNotNull() {
            addCriterion("rebate_proportion is not null");
            return (Criteria) this;
        }

        public Criteria andRebateProportionEqualTo(BigDecimal value) {
            addCriterion("rebate_proportion =", value, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionNotEqualTo(BigDecimal value) {
            addCriterion("rebate_proportion <>", value, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionGreaterThan(BigDecimal value) {
            addCriterion("rebate_proportion >", value, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rebate_proportion >=", value, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionLessThan(BigDecimal value) {
            addCriterion("rebate_proportion <", value, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rebate_proportion <=", value, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionIn(List<BigDecimal> values) {
            addCriterion("rebate_proportion in", values, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionNotIn(List<BigDecimal> values) {
            addCriterion("rebate_proportion not in", values, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rebate_proportion between", value1, value2, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andRebateProportionNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rebate_proportion not between", value1, value2, "rebateProportion");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyIsNull() {
            addCriterion("total_ts_money is null");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyIsNotNull() {
            addCriterion("total_ts_money is not null");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyEqualTo(Integer value) {
            addCriterion("total_ts_money =", value, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyNotEqualTo(Integer value) {
            addCriterion("total_ts_money <>", value, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyGreaterThan(Integer value) {
            addCriterion("total_ts_money >", value, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_ts_money >=", value, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyLessThan(Integer value) {
            addCriterion("total_ts_money <", value, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("total_ts_money <=", value, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyIn(List<Integer> values) {
            addCriterion("total_ts_money in", values, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyNotIn(List<Integer> values) {
            addCriterion("total_ts_money not in", values, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyBetween(Integer value1, Integer value2) {
            addCriterion("total_ts_money between", value1, value2, "totalTsMoney");
            return (Criteria) this;
        }

        public Criteria andTotalTsMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("total_ts_money not between", value1, value2, "totalTsMoney");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}